<?php

    $cambiar=0;
    $sql= "select * from notaitem WHERE(codalumno='".$codalumno."' AND codasignatura='".$codasignatura."'AND coditem ='16' AND evaluacion='".$_GET['c3']."')";
    $res=mysql_query($sql);
    $res2=mysql_fetch_assoc($res);
    $op1="";$op2="";$op3="";$op4="";
    if($res2){
        $nota1=$res2['nota'];
        switch($nota1)
            {
                case 9:$op1="checked='checked'";break;
                case 6:$op2="checked='checked'";break;
                case 3:$op3="checked='checked'";break;
                case 0:$op4="checked='checked'";break;
            }  
    }else{
        $op4="checked='checked'";
    }
        echo"<div class='der radio'>	
	    <input value='9' type='radio' name='radio16' class='img ap_5' id='it5.1.1'".$op1."/>
	    <input value='6' type='radio' name='radio16' id='it5.1.2' class='img ap_5'".$op2."/>
	    <input value='3' type='radio' name='radio16' id='it5.1.3' class='img ap_5'".$op3."/>
	    <input value='0' type='radio' name='radio16' id='it5.1.4' class='img ap_5' ".$op4."/>
    </div>";
?>